package lab02.test14;

public class Test14 {
    public static void main(String[] args) {
        Rectangle r1 = new Rectangle();
        System.out.println("矩形：");
        r1.length = 6.0;
        r1.width = 4.0;
        System.out.println("面积："+r1.getArea());

        Circle c1 = new Circle();
        System.out.println("圆形：");
        c1.radius = 3;
        System.out.println("半径为3的圆面积："+c1.getArea());
    }
}
